<?php 
	$this->display(tpl('head',true));
	$is_login[C('FRIEND_LINK.is_login')]='checked';
	$is_yzm[C('FRIEND_LINK.is_yzm')]='checked';
	$is_upload[C('FRIEND_LINK.is_upload')]='checked';
	$is_w[C('FRIEND_LINK.is_w')]='checked';
?>
	<style>
		.layui-form-checkbox {
		    margin-top: 10px;
		}
	</style>
	<fieldset class="layui-elem-field layui-field-title">
	  	<legend>友情链接插件参数设置</legend>
	</fieldset>
	<form class="layui-form" method="post">
		<table class="layui-table  my-tabel">
			<tbody>
				<tr>
					<td>申请友情链接是否需要登陆</td>
					<td>
						<input type="radio" name="Friend[is_login]" value="1" <?php echo $is_login[1] ?> title="必须" />
						<input type="radio" name="Friend[is_login]" value="0" <?php echo $is_login[0] ?> title="无需登录" />
					</td>
				</tr>
				<tr>
					<td>是否启用验证码</td>
					<td>
						<input type="radio" name="Friend[is_yzm]" value="1" <?php echo $is_yzm[1] ?> title="启用" />
						<input type="radio" name="Friend[is_yzm]" value="0" <?php echo $is_yzm[0] ?> title="不启用" />
					</td>
				</tr>
				<tr>
					<td>是否只允许使用文字链接</td>
					<td>
						<input type="radio" name="Friend[is_w]" value="1" <?php echo $is_w[1] ?> title="文字" />
						<input type="radio" name="Friend[is_w]" value="0" <?php echo $is_w[0] ?> title="文字和logo" />
					</td>
				</tr>
				<tr>
					<td>是否允许上传站标</td>
					<td>
						<input type="radio" name="Friend[is_upload]" value="1" <?php echo $is_upload[1] ?> title="允许" />
						<input type="radio" name="Friend[is_upload]" value="0" <?php echo $is_upload[0] ?> title="不允许" />
						不允许就使用站外链接
					</td>
				</tr>
				<tr>
					<td colspan="2" class="my_button">
						<input type="hidden" name="step" id="step" value="post" />
						<button class="layui-btn">立即设置</button>
					</td>
				</tr>
			</tbody>
		</table>
	</from>
	<script>
		
		layui.config({
			version: '<?php echo NOWTIME ?>'
		});
		layui.use(['form'], function(){
		  	var $ = layui.jquery
			var form = layui.form;
		});
	</script>
<?php $this->display(tpl('foot',true)); ?>
